package com.wnxy.admin.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author All
 * @since 2023-11-29
 */
@Data
@TableName("t_alarm_messages")
@ApiModel(value = "AlarmMessages对象", description = "")
public class AlarmMessages implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("唯一标识报警消息。")
    @TableId(value = "message_id", type = IdType.AUTO)
    @Excel(name = "ID", width = 10)
    private Long messageId;

    @ApiModelProperty("充电桩名称。")
    @Excel(name = "充电桩名称", width = 20, needMerge = true)
    private String chargerName;

    @ApiModelProperty("归属充电站。")
    @Excel(name = "归属充电站", width = 20, needMerge = true)
    private String stationName;

    @ApiModelProperty("报警类型")
    @Excel(name = "报警类型", width = 20, needMerge = true)
    private String alarmType;

    @ApiModelProperty("报警级别，描述报警的级别，例如：严重,紧急,一般。")
    @Excel(name = "报警级别", width = 20, needMerge = true, replace = {"一般_1", "紧急_0", "严重_-1"})
    private Integer levelDegree;

    @ApiModelProperty("报警时间")
    @Excel(name = "报警时间", width = 20, format = "yyyy-MM-dd HH:mm:ss",needMerge = true)
    private Date alarmTime;

    @ApiModelProperty("警报详情")
    @Excel(name = "警报详情", width = 20, needMerge = true)
    private String alarmDetails;

    @ApiModelProperty("状态,0,未处理，1,已处理，默认值为0")
    @Excel(name = "状态", width = 20, needMerge = true, replace = {"未处理_0", "已处理_0"})
    private Integer status;

    @ApiModelProperty("逻辑删除字段，可赋值含义：0：未删除")
    @Excel(name = "逻辑删除", width = 20, needMerge = true, replace = {"未删除_0", "已删除_*"})
    private Integer flag;


}
